#include<stdio.h>

#define ONE (1)
#define TWO (1<<1)
#define THREE (1<<2)
#define FOUR (1<<3)

void flags(int flag)
{
    if(flag& ONE)printf("flag have 1\n");
    if(flag& TWO)printf("flag have 2\n");
    if(flag& THREE)printf("flag have 3\n");
    if(flag& FOUR)printf("flag have 4\n");
    printf("-------------------------------\n");
}

int main()
{

    flags(ONE);
    flags(TWO);
    flags(THREE);
    flags(FOUR);
    flags(ONE | TWO);
    flags(ONE | TWO | THREE);
    flags(ONE | TWO |THREE |FOUR);



    return 0;
}
